/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package copecscheduling;

import java.util.ArrayList;

/**
 *
 * @author nacho
 */
public class OutputHelper {

    public OutputHelper(){

    }

    public void printSchedule(ArrayList<Bombero> list){
        for(int i=0;i<list.size();i++){
            //System.out.print("Bombero "+i+":");
            for(int j=0;j<list.get(i).getPlanification().size();j++){
                System.out.print(list.get(i).getPlanification().get(j)+" ");
            }
            System.out.print(" FITNESS: "+list.get(i).getFitness());
            System.out.println();
        }
    }

    public void printBombero(Bombero b,int index){
        System.out.print("Bombero "+index+" :");
        for(int i=0;i<b.getPlanification().size();i++){
            System.out.print(b.getPlanification().get(i)+" ");
        }
        System.out.println();
        System.out.println("Fitness: "+b.getFitness());
    }

    public void printList(ArrayList<Integer> l){
        for(int i=0;i<l.size();i++){
            System.out.print(l.get(i)+" ");
        }
        System.out.println();
    }
}
